﻿using System;
using System.Text;
using System.Data;

namespace UDS.Entity
{
    /// <summary>
    /// Describes an entry in UDS_Proc table.
    /// </summary>
    public class AssignRight
    {
        public int ID
        {
            get;
            private set;
        }

        public string Name
        {
            get;
            private set;
        }

        public string Description
        {
            get;
            private set;
        }

        private AssignRight()
        { }

        internal static AssignRight ReadAssignRight(IDataReader dr)
        {
            AssignRight r = new AssignRight();
            r.ID = (int)dr["Proc_ID"];
            r.Name = Convert.ToString(dr["Proc_Name"]);
            r.Description = Convert.ToString(dr["Proc_Desc"]);

            return r;
        }
    }
}
